package cn.zongjie.day05;

import java.util.Arrays;

public class Demo2 {
    public static void main(String[] args) {
        int[] arr2 = {8, 26, 15, 39, 60};
        Arrays.sort(arr2);//先排序 [8, 15, 26, 39, 60]
        System.out.println(Arrays.toString(arr2));//打印看一下
        System.out.println(Arrays.binarySearch(arr2, 7));//-1
    }
}
